package com.factory.design.pattern.factory;

import com.factory.design.pattern.query.AgentOrganizationService;
import com.factory.design.pattern.query.AgentUserService;

/**
 * 代办机构组件工厂
 *
 * @author Ldanniel
 */
public class ApOrgComponentFactory extends AbstractFactory{
    AgentOrganizationService organizationService;
    AgentUserService userService;

    public ApOrgComponentFactory(AgentOrganizationService organizationService, AgentUserService userService) {
        this.organizationService = organizationService;
        this.userService = userService;
    }



    @Override
    AgentUserService createAgentUser() {
        return this.userService;
    }

    @Override
    AgentOrganizationService createOrganization() {
        return this.organizationService;
    }
}
